package com.linw.springboot;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author lwt
 * @version 1.0
 * @Description
 * @date 2020/11/14 8:51
 */
@Component
@Slf4j
public class InintServer implements ApplicationRunner {
    @Value("${ffmpegPath}")
    String ffmpegPath;
    @Value("${inputFilePath}")
    String inputFilePath;
    @Value("${outputFilePath}")
    String outputFilePath;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        boolean flag = ExecuteCodecs.exchangeToMp4(ffmpegPath,inputFilePath,outputFilePath);
    }
}
